package com.nmgs.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 特请数据稽核表
 */
@Data
@TableName("robotlist_table")
public class RobotListTable {
        private static final long serialVersionUID = 1L;

        /**
         * 实现 Cloneable 克隆拷贝
         * 创建一个 默认 对象，用于作为克隆的源数据
         */
        private static final RobotListTable log = new RobotListTable();

        /**
         * 获取克隆对象, 避免new的方式创建
         * @return {@link RobotListTable}
         */
        public static RobotListTable getInstance(){
            try {
                return log.clone();
            } catch (CloneNotSupportedException e) {
                return new RobotListTable();
            }
        }


        /**
         * 重写克隆方法
         * @return {@link RobotListTable}
         */
        public RobotListTable clone() throws CloneNotSupportedException {
            return (RobotListTable) super.clone();
        }


        @TableId("LISTNO")
        private String listno;

        @TableField("SEQNO")
        private int seqno;

        @TableField("VERID")
        private int verid;
        @TableField("LISTSEQNO")
        private int listseqno;
        @TableField("AREANO")
        private int areano;
        @TableField("ROADNO")
        private int roadno;
        @TableField("STANO")
        private int stano;
        @TableField("STASUBNO")
        private int stasubno;
        @TableField("PORTNO")
        private int portno;
        @TableField("CLASSDATE")
        private Date classdate;
        @TableField("CLASSNO")
        private int classno;
        @TableField("DT")
        private Date dt;
        @TableField("ACARNO")
        private String acarno;
        @TableField("MESCODE")
        private int mescode;
        @TableField("MESTYPE")
        private int mestype;
        @TableField("MESNO")
        private int mesno;
        @TableField("ATTACH")
        private String attach;
        @TableField("CONTENT")
        private String content;
        @TableField("MULTIVALUE")
        private String multivalue;
        @TableField("CALLNO")
        private String callno;
        @TableField("FROMDEV")
        private String fromdev;
        @TableField("DATASRC")
        private int datasrc;
        @TableField("DATEMARK")
        private Date datemark;


        private String staname;
        private Integer portType;

        @TableField(exist = false)
        private String vehicleID;
//        private String submit;
//        private String level;
//        private String textid;
//        private String detailtext;
        @Override
        public String toString() {
                return "RobotListTable{" +
                        "listno='" + listno + '\'' +
                        ", seqno=" + seqno +
                        ", verid=" + verid +
                        ", listseqno=" + listseqno +
                        ", areano=" + areano +
                        ", roadno=" + roadno +
                        ", stano=" + stano +
                        ", stasubno=" + stasubno +
                        ", portno=" + portno +
                        ", classdate=" + classdate +
                        ", classno=" + classno +
                        ", dt=" + dt +
                        ", acarno='" + acarno + '\'' +
                        ", mescode=" + mescode +
                        ", mestype=" + mestype +
                        ", mesno=" + mesno +
                        ", attach='" + attach + '\'' +
                        ", content='" + content + '\'' +
                        ", multivalue='" + multivalue + '\'' +
                        ", callno='" + callno + '\'' +
                        ", fromdev='" + fromdev + '\'' +
                        ", datasrc=" + datasrc +
                        ", datemark=" + datemark +
                        '}';
        }
}
